 #============================================
#知识点 
from threading import Thread
from time import sleep
def func(name,iphone,ls):
    # print(name,iphone,ls)
    return name,iphone,ls

def qwq(*args,**kwargs):
    x,y,z = func(**kwargs)
    print(x,y,z)
    print(f"{kwargs.get('name')}再吃苹果")
    print(f"电话{kwargs.get('iphone')}")
    print(f"列表{kwargs.get('列表')}")
    print(f"值传参{args}")
    # sleep(3)
    # print(f"{}再吃完了")

ls = [1212,23123,34232,34534,5]
obj1 = Thread(target=qwq,kwargs={'name':'小宝','iphone':'123132','ls':ls},args=('qq','vx'))
obj2 = Thread(target=qwq,kwargs={'name':'小红','iphone':'123132','ls':ls},args=('qq','vx'))
obj1.start()
obj1.join()
obj2.start()
obj2.join()
print("完成!")
print('================================')
print(x,y)

# dic = {'name':'小宝','iphone':'123132','列表':'呜啦啦'}

# print(**dic)
#============================================
# class myThread(Thread):
#     def __init__(self,name,iphone):
#         super().__init__()  #重写了别人得方法,但不知道别人方法里面有啥,就调用父类
#         self.name = name 
#         self.iphone = iphone

#     def run(self):
#         print(self.__dict__)
#         print(self.name)
#         print(self.iphone)


# print('=============')
# x = myThread("小黑",'123456')
# y = myThread("小白",'123456')
# y.start()
# y.join()
# print('=============')
# x.start()
# x.join()
#============================================